#include <ros/ros.h>
#include "cg_interfaces/ControlSignal.h"

int main(int argc, char **argv)
{
    ros::init(argc, argv, "rc_controller");

    cg_interfaces::ControlSignal signal;
    signal.park = false;
    signal.angular_velocity = 0;
    signal.linear_velocity = 0;
    signal.brake_precent = 0;

    ros::NodeHandle nh;
    ros::Publisher signal_pub = nh.advertise<cg_interfaces::ControlSignal>("control_signal", 1);

    ros::Rate rate(10);
    while (ros::ok())
    {
        rate.sleep();
        signal_pub.publish(signal);
        ros::spinOnce();
    }
    return 0;
}